package com.iotek.bookstore.modle.service.serviceimpl;

import com.iotek.bookstore.modle.dao.impl.OrderDetailsDaoImpl;
import com.iotek.bookstore.modle.entity.OrderDetails;

import java.util.List;

public class OrderDetailsBizImpl extends MyBookstoreBizImpl<OrderDetails> {
    public OrderDetailsBizImpl() {
        myBookstoreDao=new OrderDetailsDaoImpl();
    }

    /*
    * 添加订单详情信息
    * */
    @Override
    public int insert(OrderDetails orderDetails) {
        return myBookstoreDao.insert(orderDetails);
    }

    /*
    * 根据订单ID查找订单详情信息
    * */
    @Override
    public List<OrderDetails> query(long id) {
        return myBookstoreDao.query(id);
    }
}
